#define  _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
	int n = 0, m = 0, k = 0;
	scanf("%d%d%d", &n, &m, &k);

	static int arr[110][110] = { 0 };

	int i = 0;
	int x = 0, y = 0;
	for (i = 0; i < m; i++)
	{
		scanf("%d%d", &x, &y);
		int j = 0;
		for (j = -2; j <= 2; j++)
		{
			arr[x + 2 + j][y + 2] = 1;
			arr[x + 2][y + 2 + j] = 1;
		}
		arr[x + 2 - 1][y + 2 - 1] = 1;
		arr[x + 2 - 1][y + 2 + 1] = 1;
		arr[x + 1 + 2][y - 1 + 2] = 1;
		arr[x + 1 + 2][y + 1 + 2] = 1;
	}
	for (i = 0; i < k; i++)
	{
		scanf("%d%d", &x, &y);
		int j = 0;
		int q = 0;
		for (j = -2; j <= 2; j++)
		{
			for (q = -2; q <= 2; q++)
			{
				arr[x + 2 + j][y + 2 + q] = 1;
			}
		}
	}
	int sum = 0;
	for (i = 1; i <= n; i++)
	{
		int j = 0;
		for (j = 1; j <= n; j++)
		{
			sum += arr[i + 2][j + 2];
		}
	}
	printf("%d", n * n - sum);
	return 0;
}